package com.gitee.srurl.core.api.impl.duplicate;

import com.gitee.srurl.core.annotation.ApiImpl;
import com.gitee.srurl.core.api.IDuplicateDetection;
import com.gitee.srurl.core.constant.ApiTypeConstant;
import com.gitee.srurl.core.dto.request.UrlDuplicateCheckResultDTO;

/**
 * 不检测是否重复
 *
 * @author zxw
 * @date 2023/4/19 22:22
 */
@ApiImpl(ApiTypeConstant.DuplicateDetection.NO)
public class NoDuplicateDetection implements IDuplicateDetection {

    @Override
    public UrlDuplicateCheckResultDTO checkDuplicate(String url) {
        return new UrlDuplicateCheckResultDTO(false, null, null, false);
    }
}
